package com.appoint.buss.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.appoint.buss.mapper.EpiparaSpeciesFactorsMapper;
import com.appoint.buss.domain.EpiparaSpeciesFactors;
import com.appoint.buss.service.IEpiparaSpeciesFactorsService;

/**
 * overall-infoService业务层处理
 *
 * @author appoint
 * @date 2023-01-08
 */
@Service
public class EpiparaSpeciesFactorsServiceImpl implements IEpiparaSpeciesFactorsService
{
    @Autowired
    private EpiparaSpeciesFactorsMapper epiparaSpeciesFactorsMapper;

    /**
     * 查询overall-info
     *
     * @param id overall-info主键
     * @return overall-info
     */
    @Override
    public EpiparaSpeciesFactors selectEpiparaSpeciesFactorsById(Long id)
    {
        return epiparaSpeciesFactorsMapper.selectEpiparaSpeciesFactorsById(id);
    }

    /**
     * 查询overall-info列表
     *
     * @param epiparaSpeciesFactors overall-info
     * @return overall-info
     */
    @Override
    public List<EpiparaSpeciesFactors> selectEpiparaSpeciesFactorsList(EpiparaSpeciesFactors epiparaSpeciesFactors)
    {
        return epiparaSpeciesFactorsMapper.selectEpiparaSpeciesFactorsList(epiparaSpeciesFactors);
    }

    /**
     * 新增overall-info
     *
     * @param epiparaSpeciesFactors overall-info
     * @return 结果
     */
    @Override
    public int insertEpiparaSpeciesFactors(EpiparaSpeciesFactors epiparaSpeciesFactors)
    {
        return epiparaSpeciesFactorsMapper.insertEpiparaSpeciesFactors(epiparaSpeciesFactors);
    }

    /**
     * 修改overall-info
     *
     * @param epiparaSpeciesFactors overall-info
     * @return 结果
     */
    @Override
    public int updateEpiparaSpeciesFactors(EpiparaSpeciesFactors epiparaSpeciesFactors)
    {
        return epiparaSpeciesFactorsMapper.updateEpiparaSpeciesFactors(epiparaSpeciesFactors);
    }

    /**
     * 批量删除overall-info
     *
     * @param ids 需要删除的overall-info主键
     * @return 结果
     */
    @Override
    public int deleteEpiparaSpeciesFactorsByIds(Long[] ids)
    {
        return epiparaSpeciesFactorsMapper.deleteEpiparaSpeciesFactorsByIds(ids);
    }

    /**
     * 删除overall-info信息
     *
     * @param id overall-info主键
     * @return 结果
     */
    @Override
    public int deleteEpiparaSpeciesFactorsById(Long id)
    {
        return epiparaSpeciesFactorsMapper.deleteEpiparaSpeciesFactorsById(id);
    }

    @Override
    public List<EpiparaSpeciesFactors> species(EpiparaSpeciesFactors epiparaSpeciesFactors) {
        return epiparaSpeciesFactorsMapper.species(epiparaSpeciesFactors);
    }

    @Override
    public List<EpiparaSpeciesFactors> biologicalSources(EpiparaSpeciesFactors epiparaSpeciesFactors) {
        return epiparaSpeciesFactorsMapper.biologicalSources(epiparaSpeciesFactors);
    }

    @Override
    public List<EpiparaSpeciesFactors> factors(EpiparaSpeciesFactors epiparaSpeciesFactors) {
        return epiparaSpeciesFactorsMapper.factors(epiparaSpeciesFactors);
    }
}
